package com.hanlyjiang.library.widget.paint;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;

public class DPathShape extends DShape {

	private Path path;
	private int width;
	
	public DPathShape(Path path,int color,int width) {
		super(color);
		this.path = path;
		this.width = width;
	}
	
	@Override
	public void draw(Canvas c, Paint p) {
		//
		super.draw(c, p);
		p.setStrokeWidth(width);
		c.drawPath(path, p);
	}
	
	public Path getPath() {
		return path;
	}

	public void setPath(Path path) {
		this.path = path;
	}



}
